/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_alumnoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression al_id_rut;
	public final StringExpression al_nombre;
	public final StringExpression al_fecha_nac;
	
	public Trp_alumnoDetachedCriteria() {
		super(orm.Trp_alumno.class, orm.Trp_alumnoCriteria.class);
		al_id_rut = new StringExpression("al_id_rut", this.getDetachedCriteria());
		al_nombre = new StringExpression("al_nombre", this.getDetachedCriteria());
		al_fecha_nac = new StringExpression("al_fecha_nac", this.getDetachedCriteria());
	}
	
	public Trp_alumnoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Trp_alumnoCriteria.class);
		al_id_rut = new StringExpression("al_id_rut", this.getDetachedCriteria());
		al_nombre = new StringExpression("al_nombre", this.getDetachedCriteria());
		al_fecha_nac = new StringExpression("al_fecha_nac", this.getDetachedCriteria());
	}
	
	public Trp_sexoDetachedCriteria createSexo_id_codCriteria() {
		return new Trp_sexoDetachedCriteria(createCriteria("sexo_id_cod"));
	}
	
	public Trp_cursoDetachedCriteria createCursoCriteria() {
		return new Trp_cursoDetachedCriteria(createCriteria("curso"));
	}
	
	public Trp_datosDetachedCriteria createTrp_datosCriteria() {
		return new Trp_datosDetachedCriteria(createCriteria("ORM_Trp_datos"));
	}
	
	public Trp_alumno uniqueTrp_alumno(PersistentSession session) {
		return (Trp_alumno) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Trp_alumno[] listTrp_alumno(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Trp_alumno[]) list.toArray(new Trp_alumno[list.size()]);
	}
}

